﻿#ifndef TMESSAGEBOX_H
#define TMESSAGEBOX_H

#include "dialog.h"

class TMessageBox : public TDialog
{
    Q_OBJECT
public:
    explicit TMessageBox(QWidget *parent = nullptr);
    ~TMessageBox();

    void SetIcon(const QString &icon);
    void SetMessage(const QString &msg, int type);
signals:

public slots:
    void OnBtnOkClicked();
    void OnBtnCancelClicked();

private:
    void InitWidget();
    void SetupConnections();
    void Initialize();

    QLabel  *labIco;
    QLabel  *labInfo;

    QPushButton *butOk;
    QPushButton *butCancel;
};

#endif // TMESSAGEBOX_H
